#include "saledialog.h"
#include "ui_saledialog.h"

SaleDialog::SaleDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::SaleDialog)
{
    ui->setupUi(this);
    ui->labelMainWndTitle->setText("销售管理");
    ui->saleTableWidget->setColumnCount(6);
    ui->saleTableWidget->setRowCount(20);

    QStringList tableHead;
    tableHead<<QString("商品条码")<<("商品名称")<<QString("数量")<<QString("单价")<<QString("小计")<<QString("备注");
    ui->saleTableWidget->setHorizontalHeaderLabels(tableHead);
}

SaleDialog::~SaleDialog()
{
    delete ui;
}

void SaleDialog::on_pushButton_exit_clicked()
{
    close();
}
